package com.lzh.shijicloudstack.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzh.shijicloudstack.model.dto.calendarRecord.AddEventDto;
import com.lzh.shijicloudstack.model.dto.calendarRecord.DateRangeDto;
import com.lzh.shijicloudstack.model.dto.calendarRecord.EditEventDto;
import com.lzh.shijicloudstack.model.entity.CalendarRecord;
import com.lzh.shijicloudstack.model.vo.calendarRecord.CalendarRecordVO;

import java.util.List;


/**
 * 菜谱分类服务接口
 *
 * @author luzhiheng
 * @since 2024-04-07
 */
public interface CalendarRecordService extends IService<CalendarRecord> {

    /**
     * 根据日期范围查询菜谱
     *
     * @param dto dto
     * @return List<CalendarRecord>
     */
    List<CalendarRecordVO> findCookbookByRangeDate(DateRangeDto dto);

    /**
     * 添加菜谱日程
     *
     * @param dto dto
     * @return Boolean
     */
    Boolean addEvent(AddEventDto dto);

    /**
     * 编辑菜谱日程
     *
     * @param dto dto
     * @return Boolean
     */
    Boolean editEvent(EditEventDto dto);
}

